gsk: Add gskrectprivate.h
authorBenjamin Otte <otte@redhat.com>
Thu, 20 Jul 2023 20:25:20 +0000 (22:25 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 21 Jul 2023 23:33:44 +0000 (01:33 +0200)
commitd30a9e7fa9a68680b942162051224ac141aa75c4
tree88b95182f87717ba80820f51322e08456e7c21b9
parent6e75e26a0ce2244d10e18c73941c1dc82f051f08
gsk: Add gskrectprivate.h

Add a bunch of inline functions for graphene_rectangle_t.

We use those quite extensively in tight loops so making them as fast as
possible via inlining has massive benefits.

The current render-heavy benchmark I am playing (th paris-30k in node-editor)
went from 49fps to 85fps on my AMD.
gsk/gl/gskglrenderjob.c
gsk/gskrectprivate.h [new file with mode: 0644]
gsk/gskroundedrect.c
gsk/vulkan/gskvulkanclip.c